package com.sci99.ex.util;

import org.springframework.security.core.context.SecurityContextHolder;

import com.sci99.ex.model.Employee;

public class UserUtil {

	public static Employee getUser() {
		return (Employee) SecurityContextHolder.getContext()
				.getAuthentication().getPrincipal();
	}
}
